package com.wz.dhs.po.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wz.dhs.model.common.Search;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @xia
 * @date 2022-08-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class SysUserEntity extends Search implements Serializable {

    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    @TableField("password")
    private String password;

    @TableField("username")
    private String username;

    @TableField("phone")
    private String phone;

    @TableField("user_type")
    private Integer userType;

    @TableField("password_encry")
    private String passwordEncry;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("account_status")
    private Boolean accountStatus;

    @TableField("openid")
    @ApiModelProperty("openid")
    private String openid;

    @ApiModelProperty("VIP有效期")
    private LocalDateTime vipExpireTime;

    @ApiModelProperty("avatar")
    private String avatar;

    @TableField(exist = false)
    private Integer roleId;





}
